window: Make comparison be the right direction
authorBenjamin Otte <otte@redhat.com>
Tue, 26 Apr 2011 22:49:00 +0000 (00:49 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 27 Apr 2011 13:27:52 +0000 (15:27 +0200)
Messed something up there...

gtk/gtkwindow.c

index 3ac8628bd5af2a812a1d3ec4bbcac9fe028d895a..5c6496c1ac264b7d9c85ea7a86b4d3585a05f66c 100644 (file)
@@ -4869,7 +4869,7 @@ gtk_window_guess_default_size (GtkWindow *window,
   *width = gdk_screen_get_width (screen);
   *height = gdk_screen_get_height (screen);
 
-  if (*width < *height)
+  if (*width >= *height)
     {
       /* landscape */
       *width = MIN (*width, MAX_DEFAULT_WINDOW_WIDTH);